package com.xr.miniprogram.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.xr.miniprogram.domain.MiniProgramUser;
import com.xr.miniprogram.domain.vo.MiniProgramUserVO;

import java.util.List;

public interface IMiniProgramUserService extends IService<MiniProgramUser> {

    /**
     * 微信用户登录
     * @param miniProgramUserVO
     * @return
     */
    public MiniProgramUser login(MiniProgramUserVO miniProgramUserVO);

    /**
     * 查询用户列表
     * @param miniProgramUser 用户
     * @return 用户集合
     */
    public List<MiniProgramUser> selectMiniProgramUserList(MiniProgramUser miniProgramUser);

    /**
     * 修改用户
     * @param miniProgramUser
     * @return
     */
    public int updateUser(MiniProgramUser miniProgramUser);

    /**
     * 查询用户
     *
     * @param miniProgramUserId 用户主键
     * @return 用户
     */
    public MiniProgramUser selectMiniProgramUserByMiniProgramUserId(Long miniProgramUserId);
}
